package com.oct.website.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import lombok.Data;

@Data
public class Avgthi {

	@TableId(value = "id", type = IdType.AUTO)
	private int id;
	private String monthStr;
	private BigDecimal avgThi;
	private Date opTime;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getMonthStr() {
		return monthStr;
	}
	public void setMonthStr(String monthStr) {
		this.monthStr = monthStr;
	}
	public BigDecimal getAvgThi() {
		if(avgThi!=null) {
			avgThi = avgThi.setScale(2, BigDecimal.ROUND_HALF_UP);
		}
		return avgThi;
	}
	public void setAvgThi(BigDecimal avgThi) {
		this.avgThi = avgThi;
	}
	public Date getOpTime() {
		return opTime;
	}
	public void setOpTime(Date opTime) {
		this.opTime = opTime;
	}
	
}
